home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 49 / PCPP49a.iso / editors / sofsdk / SoF SDK.msi / _19F6E3FD93BB4810A675DF4AD7934EC1 < prev    next >
Encoding:
Text File  |  2000-03-27  |  1.8 KB  |  60 lines

  1. #include "../common/header.ds"
  2. output "p:/base/ds/tsr1"
  3.  
  4. // this is the script triggered when the player enters the token booth through the glass
  5.  
  6.  
  7.  
  8. local entity tokentv // the tv thing in the token booth
  9. local entity tvthing // the other tvthing in the token booth
  10. local entity roundguy // the skinhead that will spawn round the corner shooting at the player entering
  11. local entity tokvictim // the guy who will run past the token booth
  12. local entity tokchaser // the guy following him
  13. local entity tollguy // the guy by the token machines
  14. local entity outtoken // the trigger for leaving the token booth
  15. local entity host_count // the hostage counter for how many hostage events the player has seen
  16. local int sig1
  17.  
  18.  
  19.  
  20. tokentv = find entity with targetname "tokentv"
  21. tvthing = find entity with targetname "tvthing"
  22. roundguy = find entity with targetname "roundguy"
  23. tokvictim = find entity with targetname "tokvictim"
  24. tokchaser = find entity with targetname "tokchaser"
  25. tollguy = find entity with targetname "tollguy"
  26. outtoken = find entity with targetname "outtoken"
  27. host_count = find entity with targetname "host_count"
  28.  
  29.  
  30. use entity roundguy // spawns the guy in
  31. animate entity roundguy performing action SCRIPT_RELEASE
  32.  
  33.  
  34.  
  35. use entity outtoken // sets this trigger active
  36.  
  37.  
  38. use entity tokvictim // spawns the first running guy in
  39.  
  40.  
  41.  
  42. host_count.health += 1 // sets the hostage counter up by 1 
  43. use entity tokchaser // spawns the guy chasing him
  44. animate entity tokchaser performing action STD_R_N_PK_N by moving [156, 0, 0]
  45. animate entity tokchaser performing action STD_R_N_PK_N by moving [0, -64, 0] signaling sig1
  46. wait for all clearing sig1
  47. animate entity tokchaser performing action SCRIPT_RELEASE
  48.  
  49. use entity tollguy // spawns the guy around the corner in
  50. animate entity tollguy performing action SCRIPT_RELEASE
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59. exit
  60.